package com.emagic.manage.data.network;


import com.emagic.manage.data.BuildConfig;

/**
 * TODO 描述该文件做什么
 *
 * @author baoy
 * @version 1.0
 *          Create by 16/3/16 下午6:08
 */
public class Config {
//    String APP_API_URL = (BuildConfig.API_BASE_URL.endsWith("/") ? BuildConfig.API_BASE_URL.substring(0, BuildConfig.API_BASE_URL.length() - 1) : BuildConfig.API_BASE_URL).concat(BuildConfig.API_SCHEMA);


    public static String getAppApiUrl() {
        return BuildConfig.API_BASE_URL.concat("/");
    }

    public static String getAppHtmlUrl() {
        return BuildConfig.HTML_BASE_URL;
    }


    public static String getSellerShareUrl(String rid) {
        return getAppHtmlUrl().concat(String.format("/share/ambitus.html?rid=%s", rid));
    }

    public static String getServiceAgreement() {
        return getAppHtmlUrl().concat("/agreement/serviceAgreeOwner.html");
    }

}
